<?php
declare (strict_types = 1);

namespace app\admin\controller;
use app\admin\model\Brand;
use think\facade\Db;
use think\facade\View;
use think\facade\Request;
Class PinPaiList
{
    public function PinPai_list()
    {
        $keywords = Request::get('keywords','','trim,htmlspecialchars,strip_tags');
        $brand_logo = Request::get('brand_logo','','trim,htmlspecialchars,strip_tags');
        $if_show = Request::get('if_show','2','trim,htmlspecialchars,strip_tags');
        $data=[
            'keywords'=>$keywords,
            'brand_logo'=>$brand_logo,
            'if_show'=>$if_show,
        ];

        $flist = \app\admin\model\Brand::getBrand($data,input('get.'));

        View::assign($data);
        View::assign('flist',$flist);
        return View::fetch();
    }
}